import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'dva';
import { Table } from 'antd';
import styles from './index.less';
const Pages = ({ Privilege, dispatch, loading }) => {
    const columns = [
        {
            title: '标题',
            dataIndex: 'name',
        },
        {
            title: '上传时间',
            dataIndex: 'phone',
        },
        {
            title: '作者',
            dataIndex: 'bumen',
        },
        {
            title: '封面',
            dataIndex: 'xinbie',
        },
        {
            title: '内容',
            dataIndex: 'zhiwu',
        },
    ];
    return(
        <div className={styles.container}>
            <Table columns={columns} size="small" dataSource={null} />
        </div>
    );
};

Pages.propTypes = {
    Privilege: PropTypes.object,
    loading: PropTypes.object,
    dispatch: PropTypes.func,
};

export default connect(({ Privilege, loading }) => ({ Privilege, loading }))(Pages);